<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/common.jspf"%>
<!DOCTYPE html>
<html>
<head>
    <title>系统参数</title>
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
<link rel="stylesheet" type="text/css" href="${proPath }/css/bootstrap.min.css">
<script type="text/javascript" src="${proPath }/js/jquery.min.js"></script>
<script type="text/javascript" src="${proPath }/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${proPath }/js/bootstrap-treeview.js"></script>
<script type="text/javascript" src="${proPath }/js/jquery-form.js"></script>
<script type="text/javascript" src="${proPath }/js/bootbox.js"></script>
</head>

<body>

<form action="" id="updateSysParamForm">
<table class="table table-bordered">
		<input value="${param.type }" name="type" type="hidden"/>
		<c:if test="${param.type=='uploadUser' }">
			<tr style="text-align: center;">
	 			<th colspan="2">编辑上传人员</th>
	 		</tr>
			<c:forEach items="${userList }" var="user">
				<tr style="text-align: center;">
					<td><input value="${user.name }" type="text" name="name"/></td>
					<td><span onclick="delSys(this)">删除</span></td>
				</tr>
			</c:forEach>
		</c:if>
	 	<c:if test="${param.type=='sysType' }">
			<tr style="text-align: center;">
	 			<th colspan="2">编辑系统类型</th>
	 		</tr>
			<c:forEach items="${sysList }" var="sysType">
				<tr style="text-align: center;">
					<td><input value="${sysType.name }" type="text" name="name"/></td>
					<td><span onclick="delSys(this)">删除</span></td>
				</tr>
			</c:forEach>
		</c:if> 
		<c:if test="${param.type=='productType' }">
			<tr style="text-align: center;">
	 			<th colspan="2">编辑产品类型</th>
	 		</tr>
			<c:forEach items="${sysList }" var="productType">
				<tr style="text-align: center;">
					<td><input value="${productType.name }" type="text" name="name"/></td>
					<td><span onclick="delSys(this)">删除</span></td>
				</tr>
			</c:forEach>
		</c:if>
		<c:if test="${param.type=='productModel' }">
			<tr style="text-align: center;">
	 			<th colspan="2">编辑产品型号</th>
	 		</tr>
			<c:forEach items="${sysList }" var="productModel">
				<tr style="text-align: center;">
					<td><input value="${productModel.name }" type="text" name="name"/></td>
					<td><span onclick="delSys(this)">删除</span></td>
				</tr>
			</c:forEach>
		</c:if> 
		<c:if test="${param.type=='productName' }">
			<tr style="text-align: center;">
	 			<th colspan="2">编辑产品名称</th>
	 		</tr>
			<c:forEach items="${sysList }" var="productName">
				<tr style="text-align: center;">
					<td><input value="${productName.name }"/></td>
					<td><span onclick="delSys(this)">删除</span></td>
				</tr>
			</c:forEach>
		</c:if>
		<c:if test="${param.type=='version' }">
			<tr style="text-align: center;">
	 			<th colspan="2">编辑文档版本</th>
	 		</tr>
			<c:forEach items="${sysList }" var="version">
				<tr style="text-align: center;">
					<td><input value="${version.name }" type="text" name="name"/></td>
					<td><span onclick="delSys(this)">删除</span></td>
				</tr>
			</c:forEach>
		</c:if>
		<c:if test="${param.type=='usageScenarios' }">
			<tr style="text-align: center;">
	 			<th colspan="2">编辑使用场景</th>
	 		</tr>
			<c:forEach items="${sysList }" var="usageScenarios">
				<tr style="text-align: center;">
					<td><input value="${usageScenarios.name }" type="text" name="name"/></td>
					<td><span onclick="delSys(this)">删除</span></td>
				</tr>
			</c:forEach>
		</c:if>
		<c:if test="${param.type=='specialNum' }">
			<tr style="text-align: center;">
	 			<th colspan="2">编辑特殊单编号</th>
	 		</tr>
			<c:forEach items="${sysList }" var="specialNum">
				<tr style="text-align: center;">
					<td><input value="${specialNum.name }" type="text" name="name"/></td>
					<td><span onclick="delSys(this)">删除</span></td>
				</tr>
			</c:forEach>
		</c:if> 
		<c:if test="${param.type=='documentType' }">
			<tr style="text-align: center;">
	 			<th colspan="2">编辑文档编号</th>
	 		</tr>
			<c:forEach items="${sysList }" var="documentType">
				<tr style="text-align: center;">
					<td><input value="${documentType.name }" type="text" name="name"/></td>
					<td><span onclick="delSys(this)">删除</span></td>
				</tr>
			</c:forEach>
		</c:if>
		<c:if test="${param.type=='materiel' }">
			<tr style="text-align: center;">
	 			<th colspan="2">编辑物料编码</th>
	 		</tr>
			<c:forEach items="${sysList }" var="materiel">
				<tr style="text-align: center;">
					<td><input value="${materiel.name }" type="text" name="name"/></td>
					<td><span onclick="delSys(this)">删除</span></td>
				</tr>
			</c:forEach>
		</c:if>
		<tr style="text-align: center;">
			<td colspan="2"><span onclick="addSys(this)">添加一行</span></td>
		</tr>
		<tr style="text-align: center;">
			<td colspan="2">
				<button type="button" class="btn btn-primary" onclick="submitSysParamUpdate()" data-dismiss="modal">确定</button>
       			<button type="button" class="btn btn-primary" onclick="closeSysParamModal()" data-dismiss="modal">取消</button>
			</td>
		</tr>
</table>

</form>
</body>
</html>
